import logo from '@/assets/home/logo_sm.png';
import user from '@/assets/home/user.png';
import { Tooltip } from 'antd';
import { Component } from 'react';
import styles from "./styles.less";

class Header extends Component {
    constructor(props) {
        super(props);
        // this.dimension = daoluData.dimension;
        this.state = {

        }
    }
    //渲染前调用
    componentWillMount() {
        
    }
    // outLogin() {
    //     console.log(this, 8888)
    //     router.push({
    //         pathname: `/Login`,
    //         query: {

    //         },
    //     });
    //     localStorage.clear()
    // }
    render() {
        
        return (
            <div className={styles.header}>
                <div className={styles.leftBox}><img style={{ marginRight: 13 ,width:34,height:36}} src={logo} alt="" />物资管理系统</div>
                <div className={styles.rightBox}>
                    <Tooltip title="个人中心">
                        <img style={{ marginRight: 15 }} src={user} alt="" />
                    </Tooltip>
                    {/* <Tooltip title="退出登录">
                        <img onClick={this.outLogin} src={loginout} alt="" />
                    </Tooltip> */}

                </div>
            </div>
        )
    }
}

export default Header;